package com.center.biz.impl;

import com.center.api.model.EduWebsiteNavigate;
import com.center.api.remote.RemoteEduWebsiteNavigateService;
import com.center.biz.dao.EduWebsiteNavigateMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduWebsiteNavigateService.class)
public class RemoteEduWebsiteNavigateServiceImpl implements RemoteEduWebsiteNavigateService{

    @Autowired
    private EduWebsiteNavigateMapper eduWebsiteNavigateMapper;

    @Override
    public int save(EduWebsiteNavigate eduWebsiteNavigate) {
        return eduWebsiteNavigateMapper.insertSelective(eduWebsiteNavigate);
    }

    @Override
    public int update(EduWebsiteNavigate eduWebsiteNavigate) {
        return eduWebsiteNavigateMapper.updateByPrimaryKeySelective(eduWebsiteNavigate);
    }

    @Override
    public int delete(int id) {
        return eduWebsiteNavigateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduWebsiteNavigate> select(EduWebsiteNavigate eduWebsiteNavigate) {
        return null;
    }

    @Override
    public EduWebsiteNavigate getById(int id) {
        return eduWebsiteNavigateMapper.selectByPrimaryKey(id);
    }
}
